<script src="<?php echo base_url()?>/public/assets/js/laydate/laydate.js" type="text/javascript"></script>
<div class="row">
	<div class="col-sm-12">
	<form class="well form-search" method="get" action="/admin/summarybook" id="formid">
		<input type="hidden" value="ok" name="search" />
		<div class="ztle">
			<div class="zsearch">
		    	上课时间:
		        <input class="ztleinput zia" placeholder="请输入开始时间" name="start_time" id="start_time" value="<?php echo $_REQUEST['start_time']?>" onclick="laydate({istime: true, format: 'YYYY-MM-DD'})">
		        至
		        <input class="ztleinput zib" placeholder="请输入结束时间" name="stop_time" id="stop_time" value="<?php echo $_REQUEST['stop_time']?>" onclick="laydate({istime: true, format: 'YYYY-MM-DD'})">
		        关键词:
		        <input class="ztleinput zia" placeholder="学生或园所" name="keyword" id="keyword" value="<?php echo $_REQUEST['keyword']?>" autocomplete="off">
		        <input type="submit" class="searchbtn" value="搜 索" style="height: 30px">
		        <a href="javascript:daochu();" class="searchbtn">导出</a>
		        <br><br>
		        <p><span>总数：<?php echo $book_total?>&nbsp;&nbsp;&nbsp;&nbsp;</span>
		        </p>
		    </div>
		</div>
	  </form>
		<div class="space"></div>
		<table width="100%" class="table table-striped table-bordered table-hover">
			<tr>
			    <th height="30">ID</th>
				<th>学生</th>
				<th>老师</th>
				<th height="30">上课时间</th>
				<th>状态</th>
				<th>家长评价</th>
				<th>评分</th>
				<th>园所</th>
				<th height="30">操作</th>
			</tr>
			<?php if(!empty($book_list)){foreach ($book_list as $key=>$val){?>
			<tr>
			  <td height="30"><?php echo $val['id']?></td>
			  <td><?php echo $val['baby_name']?></td>
			  <td><?php echo $val['teacher_name']?></td>
			  <td height="30">
			  <?php echo $val['book_date']?> 
			  <?php echo $val['book_date_start']?>-
			  <?php echo $val['book_date_end']?>
			  </td>
			  <td><?php echo $book_status[$val['status']]?></td>
			  <td><?php echo $val['message']?></td>
			  <td><?php echo $val['star']?></td>
			  <td><?php echo $val['nursery_title']?></td>
			  <td height="30">
			  	<a href='/admin/summarybook/resetbook?book_id=<?php echo $val['id']?>'>转单</a>
			  	</td>
		  </tr>
		  <?php }}else{?>
			<tr>
			  <td height="30" colspan="9"><div align="center"><?php echo $error;?></div></td>
		  </tr>
		  <?php }?>
	  </table>
		
		<div class="float_right">
			<?php echo $pagelink;?>
		</div>
	</div>
</div>
<script type="text/javascript">

</script>
<!--content-->